package appLoader.loaders {
	
	import flash.net.URLRequest;	
	import flash.net.URLLoader;
	
	[Event(name="complete", type="flash.events.Event")]
	
	[Event(name="ioError", type="flash.events.IOErrorEvent")]
	
	[Event(name="progress", type="flash.events.ProgressEvent")]
	
	[Event(name="httpStatus ", type="flash.events.HTTPStatusEvent")]
	
	[Event(name="securityError ", type="flash.events.SecurityErrorEvent")]
	
	[Event(name="open", type="flash.events.Event")]
	
	public class LoaderXML extends URLLoader implements ILoader {
		
		public function LoaderXML() {}
		
		public function loads(url : String):void {
			this.load(new URLRequest(url));
		}
		
		public function getData() : * {			
			return this.bytesLoaded >= this.bytesTotal ? this.data : null;
		}
		
		public override function toString() : String {
			return "[ LoaderXML ]";
		}
	}
}
